package org.pkg.jstools.preferences;

/**
 * Constant definitions for plug-in preferences
 */
public class PreferenceConstants {

	public static final String JSLINT_INDENT = "indent"; 			// The number of spaces used for indentation (default is 4).
	public static final String JSLINT_LINELEN = "maxlen"; 			// The maximum number of characters in a line.
	public static final String JSLINT_ERRS = "maxerr";				// The maximum number of warnings reported. (default is 50)
	public static final String JSLINT_PREDEF = "predef";			// An array of strings, the names of predefined global variables, 
																	// or an object whose keys are global variable names, and whose 
																	// values are booleans that determine if each variable is assignable (also see global).
																	// predef is used with the option object, but not with the /*jslint */ comment.
																	// You can also use the var statement to declare global variables in a script file.
	
	public static final String JSLINT_ADSAFE = "adsafe";			// true if ADsafe rules should be enforced. See http://www.ADsafe.org/.
	public static final String JSLINT_BITWISE = "bitwise";			// true if bitwise operators should be allowed.
	public static final String JSLINT_BROWSER = "browser";			// true if the standard browser globals should be predefined.
	public static final String JSLINT_CAP = "cap";					// true if uppercase HTML should be allowed.
	public static final String JSLINT_CONFUSION = "confusion";		// true if variables and properties are allowed to contain more than one type of value.
	public static final String JSLINT_CONTINUE = "continue";		// true if the continue statement should be allowed.
	public static final String JSLINT_CSS = "css";					// true if CSS workarounds should be tolerated.
	public static final String JSLINT_DEBUG = "debug";				// true if debugger statements should be allowed. Set this option to false before going into production.
	public static final String JSLINT_DEVEL = "devel";				// true if browser globals that are useful in development should be predefined.
	public static final String JSLINT_EQEQ = "eqeq";				// true if the == and != operators should be tolerated..
	public static final String JSLINT_ES5 = "es5";					// true if ES5 syntax should be allowed. It is likely that programs using this option will produce syntax errors on ES3 systems.
	public static final String JSLINT_EVIL = "evil";				// true if eval should be allowed.
	public static final String JSLINT_FORIN = "forin";				// true if unfiltered for in statements should be allowed.
	public static final String JSLINT_FRAGMENT = "fragment";		// true if HTML fragments should be allowed.
	public static final String JSLINT_NEWCAP = "newcap";			// true if Initial Caps with constructor functions is optional.
	public static final String JSLINT_NODE = "node";				// true if Node.js globals should be predefined.
	public static final String JSLINT_NOMEN = "nomen";				// true if names should not be checked for initial or trailing underbars.
	public static final String JSLINT_ON = "on";					// true if HTML event handlers should be allowed.
	public static final String JSLINT_PASSFAIL = "passfail";		// true if the scan should stop on first error.
	public static final String JSLINT_PLUSPLUS = "plusplus";		// true if ++ and -- should be allowed.
	public static final String JSLINT_REGEXP = "regexp";			// true if . and [^...] should be allowed in RegExp literals. They match more material than might be expected, allowing attackers to confuse applications. These forms should not be used when validating in secure applications.
	public static final String JSLINT_RHINO = "rhino";				// true if the Rhino environment globals should be predefined.
	public static final String JSLINT_SAFE = "safe";				// true if the safe subset rules are enforced. These rules are used by ADsafe. It enforces the safe subset rules but not the widget structure rules.
	public static final String JSLINT_SLOPPY = "sloppy";			// true if the ES5 'use strict'; pragma is not required. Do not use this pragma unless you know what you are doing.
	public static final String JSLINT_SUB = "sub";					// true if subscript notation may be used for expressions better expressed in dot notation.
	public static final String JSLINT_UNDEF = "undef";				// true if variables and functions need not be declared before used.
	public static final String JSLINT_UNPARAM = "unparam";			// true if warnings should not be given for unused parameters.
	public static final String JSLINT_VARS = "vars";				// true if multiple var statement per function should be allowed.
	public static final String JSLINT_WHITE = "white";				// true if strict whitespace rules should be ignored.
	public static final String JSLINT_WIDGET = "widget";			// true if the Yahoo Widgets globals should be predefined.
	public static final String JSLINT_WINDOWS = "windows";			// true if the Windows globals should be predefined.
	
	public static final String JSB_INDENT = "indent_size";
	public static final String JSB_PRESERVE_EMPTY = "preserve_newlines";
	public static final String JSB_DETECT_PACKERS = "packers";
	public static final String JSB_IDENT_SPACE = "space_after_anon_function";
	public static final String JSB_LINT_HAPPY = "jslint_happy";
	public static final String JSB_BRACE_STYLE = "brace_style";
}
